<div class="row" >
<nav class="navbar navbar-default" role="navigation">
    <div class="navbar-header">
      <a class="navbar-brand" href="/index/index"></a>

      <!--登录后-->
      <?php if(!empty($currentLoginUser)) {?>
      <p class="navbar-text navbar-right">欢迎 <span id="name"><?php echo $currentLoginUser;?></span> 
         <a href="/index/pLogout" class="navbar-link log_out">退出</a>
      </p>

    <?php } else {?>
      <!--登录后-->
        <p class="navbar-text navbar-right"><span id="name"></span> 
         <a href="/index/pLogin" class="navbar-link log_out">登录</a>
      </p>
    </div>
    <?php }?>
</nav>
</div>